cesium 加载4490坐标系
1.修改 ArcGisMapServerImageryProvider.js 源码
读取切片元数据时增加支持 wkid 4490 坐标系的判断,同时将切片信息也传
1 | if (data.fullExtent.spatialReference.wkid === 4490) { |
fullExtent 范围增加 wkid 4490 坐标系判断
1 | if (data.fullExtent.spatialReference.wkid === 4490) { |
1 | function metadataSuccess(data, imageryProviderBuilder) { |
2.修改 GeographicTilingScheme 类
1 | /** Geoworld Add **/ |
修改切片矩阵计算获取行列号 xy 值的原型方法 getNumberOfXTilesAtLevel 和 getNumberOfYTilesAtLevel
1 | GeographicTilingScheme.prototype.getNumberOfXTilesAtLevel = function (level) { |
3.修改 Ellipsoid 类,定义 2000 椭球参数
1 | /** |
使用
1 | var cgs2000Ellipsolid = new Cesium.Ellipsoid(6378137.0, 6378137.0, 6356752.31414035585); |
cesium 加载4490坐标系